<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>Topics: <%= controller.action_name %></title>
  <%= stylesheet_link_tag 'post' %>
  <%= javascript_include_tag :defaults %>
</head>
<body>

<div id="log_info">
  <%= render :layout => '/login/log_info' %>
</div>


<div align="center" >
  <img src="../../images/main.jpg" id="picture" />   <!--插入网站主页的大图-->
</div>

<div id="function">
  <table width="500" border="0">
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  </table>
</div>


<div class="section">
  <div class="item">
    <h3>发起活动</h3>
      <div class="description">
        <% form_tag :controller=>"activity", :action=>"create"  do   %>
          <% @error_msg.each do |error| %>
          <p><%=h error %></p>
          <% end %>
          <label for="title"  >标题</label>
          <p><%= text_field_tag 'title' %></p>

          <label for="people_demande">活动人数</label>
          <p><%= text_field_tag 'people_demande' %></p>

          <label for="service_time">活动服务时</label>
          <p><%= text_field_tag 'service_time' %></p>
          
          <label for="topic_content">活动详情</label>
          <p><%= text_area_tag 'topic_content' , nil ,:cols=>80, :rows=>5 %></p>

          <label for="deadline">报名截止日期</label>
          <p><%= date_select :deadline, "written_on" %></p>

          <%= submit_tag " 提交活动申请 " %>
        <% end  %>
      </div>
  </div>
</div>




<div id="footer">
</div>


</body>
</html>